#!/bin/bash

# # #SBATCH --exclusive 
# # #SBATCH -N 1 
# # #SBATCH -n 64 
# # #SBATCH -t 10
# # #SBATCH -p amd_256

# lscpu
# source /public1/soft/modules/module.sh
# module load gcc/10.2.0
# module load openmpi/3.1.6-gcc
# gcc -v
make clean && make
for((i=1; i<=64; i*=2))
do
    export OMP_NUM_THREADS=$i
    echo $OMP_NUM_THREADS
    ./SLIC.out
done
# srun -N 1 -t 10 ./SLIC.out
# srun -p amd_256 -N 1 -t 10 ./SLIC.out